﻿using System;
using System.Runtime.Serialization;

namespace Sustainalytics.Companies.Exceptions
{
   
        [Serializable]
        public class CorporateDataNotFoundException : Exception
        {

            private const string _defaultMessage = "This data was not found in the corporate data collection";
            //
            // For guidelines regarding the creation of new exception types, see
            //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp
            // and
            //    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp
            //

            public CorporateDataNotFoundException()
                : this(_defaultMessage)
            {
            }

            public CorporateDataNotFoundException(string message)
                : base(message)
            {
            }

            public CorporateDataNotFoundException(string message, Exception inner)
                : base(message, inner)
            {
            }

            protected CorporateDataNotFoundException(
                SerializationInfo info,
                StreamingContext context)
                : base(info, context)
            {
            }
        }
    
}
